﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace LongQuanWeb.App_Code
{
    public class Common
    {
        public static string GetTitle(string title,int num)
        {
            if (title.Length >= num)
            {
                title = title.Substring(0, num) + "...";
            }
            return title;
        }
    }
}
